﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Dapper_Core.ConsoleTest;
using Microsoft.AspNetCore.Mvc;

namespace Dapper_Core.Web.Controllers
{
    public delegate void InvokeTest(object param);
    [TypeFilter(typeof(IgnoreCheckSessionFilter))]
    public class TestController : Controller
    {
        public event InvokeTest InvokeTestHandler;
        public IActionResult Index()
        {
            InvokeTestHandler += new PayTest().Run;
            InvokeTestHandler.Invoke("");

            return View();
        }
    }
}